// 带参数的路由 不是由后台提供
import store from '@/store'
const dynamicroutes=[
    {
        path:'/customer/:id/:name'
    },
    {
        name:'search',
        path:'/search/:commodityname'
    },
    {
        path:'/superstore/:id/:name'
    },
    {
        path:'/detail/:type/:id/:name',
        component:()=>import('@/views/detail.vue'),
        meta:{
           
        },
        beforeEnter: (to, from, next) => {
           
            // ...
            store.commit('temporary/setpagemark',to.params.type)
            document.title=to.params.type+ ' | '+to.params.name
            next()
        }
    }
]
export default dynamicroutes